all:
	go build -buildmode=c-shared -o lib/out_mqtt.so cmd/main.go

prod:
	go build -buildmode=c-shared -o /out_plugins/out_mqtt.so cmd/main.go


clean:
	rm -rf lib/*.so lib/*.h lib/*~

IMAGE_TAG ?= $(shell git describe --tags)

.PHONY: images
images:
	docker build -t fluent/fluent-bit:v1.8.0-${IMAGE_TAG} -f Dockerfile .

